<?php
/* [$WindsForce] (C)Hunzhiwange.COM Since 2014.07.28.
   家居管理员留言控制器($$)*/

!defined('Q_PATH') && exit;

class JiajucompanymessageController extends AController{

	public function filter_(&$arrMap){
		$arrMap['A.jiajucompanymessage_refmodule']=array('like',"%".Q::G('jiajucompanymessage_refmodule')."%");
		$arrMap['A.jiajucompanymessage_content']=array('like',"%".Q::G('jiajucompanymessage_content')."%");
		
		// 添加时间
		$this->getTime_('A.create_dateline',$arrMap);
	}

	public function index($sModel=null,$bDisplay=true){
		parent::index('jiajucompanymessage',false);
		$this->display(Admin_Extend::template('jiaju','jiajucompanymessage/index'));
	}

	protected function sqljoin_(){
		return "->join('".Q::C('DB_PREFIX')."jiajucompany AS C','C.jiajucompany_id,C.jiajucompany_fullname,C.jiajucompany_isfvip,C.jiajucompany_domain','A.jiajucompany_id=C.jiajucompany_id')";
	}

	public function forbid($sModel=null,$sId=null,$bApp=false){
		$nId=intval(Q::G('value','G'));
		parent::forbid('jiajucompanymessage',$nId,true);
	}

	public function resume($sModel=null,$sId=null,$bApp=false){
		$nId=intval(Q::G('value','G'));
		parent::resume('jiajucompanymessage',$nId,true);
	}

	public function foreverdelete_deep($sModel=null,$sId=null){
		$sId=Q::G('value');
		parent::foreverdelete_deep('jiajucompanymessage',$sId);
	}

}
